package com.education.common.utils;
/**
 * 相应状态码
 * */
public class ResultCode {
    public static final int SUCCESS=1;//响应成功状态码
    public static final int FAIL=0;//响应失败状态码
    public static final String DEFAULT_SUCCESS_MESSAGE="操作成功";
    public static final String DEFAULT_FAIL_MESSAGE="操作失败";


    private  int code=SUCCESS;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public ResultCode(){

    }
    public ResultCode(int code, String message){
        this.code=code;
        this.message=message;

    }

}
